from src.core.models.dto import CategoryDTO
from src.database.models import Category


def convert_db_model_to_category_dto(category: Category) -> CategoryDTO:
    return CategoryDTO(
        id=category.id,
        title_ru=category.title_ru,
        title_en=category.title_en,
        title_uk=category.title_uk,
    )
